WebMap
Universal map constructor
This library is not intended for using directly in the browser.
Use Webmap with NPM installation method for building large scale applications. It pairs nicely with module bundlers such as Webpack
$ npm install --save-dev @nextgis/webmap
$ yarn add @nextgis/webmap
import WebMap from '@nextgis/webmap';
import LeafletMapAdapter from '@nextgis/leaflet-map-adapter';
import 'leaflet/dist/leaflet.css';
const webMap = new WebMap({
mapAdapter: new LeafletMapAdapter()
});
webMap.create(options).then(() => {
})
Commercial support
Need to fix a bug or add a feature to @nextgis/ol-map-adapter
? We provide custom development and support for this software. Contact us to discuss options!
0.32.0 (2020-06-03)
Bug Fixes
- cesium: fitBounds for not Scene3D modes (8fa4155)
- cesium: geojson terrain sample (308d3d3)
- cesium: Tileset3DAdapter set terrain height (790760f)
- examples: check paint opacity is number (1105262)
- examples: set type for ngw_resource highlight layer (13ddcdd)
- mapbox: geojson getSelected method (e0d859c)
- ngw-kit: check company_logo in settings (decf777)
- ngw-kit: set correct options when add WebmapLayerItem (0c5cd08)
- ngw-kit: WebmapLayerItem ordering (d4a0403)
- vuetify: correction for set empty BasemapSelect text (8ab35e4)
- vuetify: NgwLayersList root item hide (abba8cb)
Features
- cesium: implement getCenter (ea83d8e)
- cesium: skipLevelOfDetail by default (7429870)
- cesium: tilset 3d adapter height options (02973bf)
- cesium: update layer and map adapter (c9d6a1d)
- ngw-kit: add ngw basemap suppor for url (958303e)
- ngw-kit: add NgwKit.utils.getCompanyLogo method (3c6fa09)
- ngw-kit: add
tmsclient_layer
adapter class support (87b5976) - qms-kit: use
y_origin_top
option (fa02dfd) - webmap: vector layer select event (edd18ba)
- webmap: zoomIn and zoomOut MapAdapter optional methods (70b807f)
Performance Improvements
- webmap: addControl conner queue (5c21367)
BREAKING CHANGES
-
Vector layer adapter types were renamed: circle
> point
; fill
> polygon
.
The `type` parameter still optional, but it is better to specify explicitly.
Especially when the layer is initiated empty.
// before
webMap.addLayer('GEOJSON', { data: geojson, type: 'fill' });
// after
webMap.addLayer('GEOJSON', { data: geojson, type: 'polygon' });
- Updated libraries for linting. Added new rule for worning when no set return type in TypeScript functions.